package jsyf.oa.entity.wechartSec;

import com.alibaba.fastjson.JSONObject;
import jsyf.oa.ientity.BaseEntity;

import javax.persistence.Entity;
import javax.persistence.Table;
import java.math.BigDecimal;

/**
 * Created by 92852 on 2018/4/17.
 */
@Entity
@Table(name = "T_SEC_DEVICE", schema = "oa", catalog = "")
public class WechartDeviceEntity extends BaseEntity{
    private String createUserId;
    private String deviceNo;
    private String province;
    private String city;
    private String county;
    private String brandId;
    private Integer hours;
    private BigDecimal price;
    private Integer procedureFlag;
    private String remark;
    private String coverImgUrl;
    private Integer delFlag;



    public String getCreateUserId() {
        return createUserId;
    }

    public void setCreateUserId(String createUserId) {
        this.createUserId = createUserId;
    }

    public String getDeviceNo() {
        return deviceNo;
    }

    public void setDeviceNo(String deviceNo) {
        this.deviceNo = deviceNo;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getCounty() {
        return county;
    }

    public void setCounty(String county) {
        this.county = county;
    }

    public String getBrandId() {
        return brandId;
    }

    public void setBrandId(String brandId) {
        this.brandId = brandId;
    }

    public Integer getHours() {
        return hours;
    }

    public void setHours(Integer hours) {
        this.hours = hours;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public Integer getProcedureFlag() {
        return procedureFlag;
    }

    public void setProcedureFlag(Integer procedureFlag) {
        this.procedureFlag = procedureFlag;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getCoverImgUrl() {
        return coverImgUrl;
    }

    public void setCoverImgUrl(String coverImgUrl) {
        this.coverImgUrl = coverImgUrl;
    }

    public Integer getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(Integer delFlag) {
        this.delFlag = delFlag;
    }

    @Override
    public JSONObject getJSONObject() {
        JSONObject obj = new JSONObject();
        obj.put("ID", this.getId());
        obj.put("CREATE_USER_ID", this.getCreateUserId());
        obj.put("DEVICE_NO", this.getDeviceNo());
        obj.put("PROVINCE", this.getProvince());
        obj.put("CITY", this.getCity());
        obj.put("COUNTY", this.getCounty());
        obj.put("BRAND_ID", this.getBrandId());
        obj.put("HOURS", this.getHours());
        obj.put("PRICE", this.getPrice());
        obj.put("PROCEDURE_FLAG", this.getProcedureFlag());
        obj.put("REMARK", this.getRemark());
        obj.put("COVER_IMG_URL", this.getCoverImgUrl());
        obj.put("DEL_FLAG", this.getDelFlag());
        obj.put("CREATE_TIME", this.getCreateTime());
        return obj;
    }

    @Override
    public String getTableName() {
        return "T_SEC_DEVICE";
    }

    @Override
    public JSONObject getJSONColumns() {
        JSONObject obj = new JSONObject();
        obj.put("ID", "id");
        obj.put("CREATE_USER_ID", "createUserId");
        obj.put("DEVICE_NO", "deviceNo");
        obj.put("PROVINCE"," province");
        obj.put("CITY","city");
        obj.put("COUNTY","county");
        obj.put("BRAND_ID","brandId");
        obj.put("HOURS","hours");
        obj.put("PRICE","price");
        obj.put("PROCEDURE_FLAG","procedureFlag");
        obj.put("REMARK", "remark");
        obj.put("COVER_IMG_URL", "coverImgUrl");
        obj.put("DEL_FLAG", "delFlag");
        return obj;
    }
}
